/* 微信参数AppID 和 Secret */
var wxConfig = {
    AppID: "wxfe0cfbd77d474bd0",  // 小程序ID  
    Secret: "845526ec1a7f91d7d7edc4b1158a7651",  // 小程序Secret
    Mch_id: "1487704862", // 商户号
    Mch_key: "K7IK8R6BMMQWKRZH2Q9JFBYPJVAJIWDH", // 商户key
    localUrl: 'https://e6234kn.hn3.mofasuidao.cn/',
    url: 'https://www.zijinghuatx.cn/',
    secret: '74TEUH1KB2XPL7PY7O29OPRLNFNIATAG',
    // 生成商户订单号
    getWxPayOrdrID: function(){
        var myDate = new Date();
        var year = myDate.getFullYear();
        var mouth = myDate.getMonth() + 1;
        var day = myDate.getDate();
        var hour = myDate.getHours();
        var minute = myDate.getMinutes();
        var second = myDate.getSeconds();
        var msecond = myDate.getMilliseconds(); //获取当前毫秒数(0-999)
        if(mouth < 10){ /*月份小于10  就在前面加个0*/
            mouth = String(String(0) + String(mouth));
        }
        if(day < 10){ /*日期小于10  就在前面加个0*/
            day = String(String(0) + String(day));
        }
        if(hour < 10){ /*时小于10  就在前面加个0*/
            hour = String(String(0) + String(hour));
        }
        if(minute < 10){ /*分小于10  就在前面加个0*/
            minute = String(String(0) + String(minute));
        }
        if(second < 10){ /*秒小于10  就在前面加个0*/
            second = String(String(0) + String(second));
        }
        if (msecond < 10) {
            msecond = String(String(00) + String(second));
        } else if(msecond >= 10 && msecond < 100){
            msecond = String(String(0) + String(second));
        }

        var currentDate = String(year) + String(mouth) + String(day) + String(hour) + String(minute) + String(second) + String(msecond);
        return currentDate;
    }
};
module.exports = wxConfig;